package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.CaseClaimPhotoMapper;
import com.ktgj.customer.domain.CaseClaimPhoto;
import com.ktgj.customer.service.ICaseClaimPhotoService;

/**
 * 理赔工单凭证图片Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-25
 */
@Service
public class CaseClaimPhotoServiceImpl implements ICaseClaimPhotoService 
{
    @Autowired
    private CaseClaimPhotoMapper caseClaimPhotoMapper;

    /**
     * 查询理赔工单凭证图片
     * 
     * @param caseClaimPhotoId 理赔工单凭证图片ID
     * @return 理赔工单凭证图片
     */
    @Override
    public CaseClaimPhoto selectCaseClaimPhotoById(Long caseClaimPhotoId)
    {
        return caseClaimPhotoMapper.selectCaseClaimPhotoById(caseClaimPhotoId);
    }

    /**
     * 查询理赔工单凭证图片列表
     * 
     * @param caseClaimPhoto 理赔工单凭证图片
     * @return 理赔工单凭证图片
     */
    @Override
    public List<CaseClaimPhoto> selectCaseClaimPhotoList(CaseClaimPhoto caseClaimPhoto)
    {
        return caseClaimPhotoMapper.selectCaseClaimPhotoList(caseClaimPhoto);
    }

    /**
     * 新增理赔工单凭证图片
     * 
     * @param caseClaimPhoto 理赔工单凭证图片
     * @return 结果
     */
    @Override
    public int insertCaseClaimPhoto(CaseClaimPhoto caseClaimPhoto)
    {
        return caseClaimPhotoMapper.insertCaseClaimPhoto(caseClaimPhoto);
    }

    /**
     * 修改理赔工单凭证图片
     * 
     * @param caseClaimPhoto 理赔工单凭证图片
     * @return 结果
     */
    @Override
    public int updateCaseClaimPhoto(CaseClaimPhoto caseClaimPhoto)
    {
        return caseClaimPhotoMapper.updateCaseClaimPhoto(caseClaimPhoto);
    }

    /**
     * 批量删除理赔工单凭证图片
     * 
     * @param caseClaimPhotoIds 需要删除的理赔工单凭证图片ID
     * @return 结果
     */
    @Override
    public int deleteCaseClaimPhotoByIds(Long[] caseClaimPhotoIds)
    {
        return caseClaimPhotoMapper.deleteCaseClaimPhotoByIds(caseClaimPhotoIds);
    }

    /**
     * 删除理赔工单凭证图片信息
     * 
     * @param caseClaimPhotoId 理赔工单凭证图片ID
     * @return 结果
     */
    @Override
    public int deleteCaseClaimPhotoById(Long caseClaimPhotoId)
    {
        return caseClaimPhotoMapper.deleteCaseClaimPhotoById(caseClaimPhotoId);
    }
}
